{include file="header.html"}

<div class="page-header">
	<h6>
		订单管理
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			订单列表
		</small>
		<div style="text-align:right">
			<a href="?app=order&act=export&where={$where}" target="_blank">导出到EXCEL</a>
		</div>		
	</h6>
</div><!-- /.page-header -->

<form class="form-inline" action="?" method="get">
<input type="hidden" name="app" id="app" value="order" />
<input type="hidden" name="act" id="act" value="index" />
<input type="text" class="input-medium" placeholder="关键词" name="keyword" value="{$keyword}" /> 
<select name="status" id="status" class="form-control">
	<option value="">状态</option>
	<option value="0">未支付</option>
	<option value="1">已支付</option>
	<option value="2">已确认</option>
	<option value="3">完成</option>
	<option value="4">待评价</option>
	<option value="-1">已取消</option>
</select>
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<table id="simple-table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th>ID</th>
			<th>订单单号</th>
			<th>美容师</th>
			<th>门店</th>
			<th>下单人</th>
			<th>电话</th>
			<th>服务时间</th>
			<th>服务地址</th>
			<th>总价/元</th>
			<th>状态</th>
			<th>下单时间</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		{foreach from=$rs item=row name=row}
		<tr>
			<td>{$row.id}</td>
			<td>
			<a href="?app=order&act=edit&order_id={$row.id}">{$row.order_sn}</a></td>
			<td style="text-align:center;">{$row.beautician_name}</td>
			<td>{$row.shop_name}</td>
			<td>{$row.name}</td>
			<td>{$row.mobile}</td>
			<td>{$row.service_time}</td>
			<td>{$row.address}</td>
			<td>{$row.total_price}</td>
			<td align="center">{$row.status_name}</td>
			<td>{$row.add_time|date_format:"%Y-%m-%d"}</td>
			<td>
				<a href="?app=order&act=edit&order_id={$row.id}">
					<button class="btn btn-xs btn-info">
					<i class="ace-icon fa fa-pencil bigger-120"></i>
				</button>
				</a>
				<!--
				<a href="?app=order&act=delete&order_id={$row.id}" class="delete">
					<button class="btn btn-xs btn-danger">
					<i class="ace-icon fa fa-trash-o bigger-120"></i>
				</button>
				</a>
				-->
			</td>
		</tr>
		{foreachelse}
		<tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
		{/foreach}	
		
	</tbody>
</table>
	<div class="mypage" style="text-align:right">
			共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
	</div>
{include file="footer.html"}
